package com.example.httpmessageconvert.httpmessageconvert.messageconfig;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;

/**
 * @author 奶茶
 * Created by on 2017/12/28.
 * jackson 转换类 经实体属性全部做相应处理
 */
public class UpperCase extends PropertyNamingStrategy.PropertyNamingStrategyBase{

    @Override
    public String translate(String propertyName) {
        if(propertyName == null || propertyName.length() == 0){
            return propertyName;
        }
        return propertyName.toUpperCase();
    }

}
